package com.computergames.server.message;
import com.computergames.server.message.chessMessage.AbstractChessMessage;
import  com.computergames.server.message.chessMessage.GobangMessage;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString(callSuper = true)
public class MoveResponseMessage extends AbstractResponseMessage<String>{
    private String from;
    private AbstractGameMessage content;

    public MoveResponseMessage() {
    }

    public MoveResponseMessage(boolean success, String reason) {
        super(success, reason);
    }

    public MoveResponseMessage(String from, AbstractGameMessage content,boolean success, String reason) {
        super(success, reason);
        this.from = from;
        this.content = content;
    }

    @Override
    public int getMessageType() {
        return MoveResponseMessage;
    }
}
